<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'filelist.jsp' starting page</title>
  </head>
  
  <body>
    <a href="file.jspx?m=add">添加新资料</a>
  
    <h3>资料列表 </h3>
    <table border="1" width="70%">
    	<tr>
    		<th><strong>文件名称</strong></th>
    	    <th><strong>操作</strong></th>
    	</tr>
	    <c:forEach items="${list}" var="d">
	    <tr>
	    	<td><strong>${d.name }</strong></td>
	    	<td>
	    		<strong><a href="file.jspx?m=download&f=${d.fileName }">下载</a></strong>	
	    	</td>
	    </tr>
	    </c:forEach>
    </table>
  </body>
</html>
